package com.ruoyi.lvlian.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
@ToString
@ApiModel(value = "销售物流关联采购物流对象", description = "销售物流关联采购物流对象 lv_warehouse_ref")
public class WarehouseRefDto {

    private String companyShortName;

    /**
     * 采购入库单号
     */
    @ExcelProperty("采购入库单号")
    private String inNum;

    /**
     * 采购合同编号
     */
    @ExcelProperty("采购合同编号")
    private String buyerContractNum;

    /**
     * 供应商名称
     */
    @ExcelProperty("供应商名称")
    private String buyerName;
    @NotNull(message = "orgCodes不能为空") // 这是实际的验证注解
    private List<String> orgCodes;

    @ApiModelProperty(value = "采购物流是否有图")
    private Boolean haveImg;

    private String  startDate;
    private String  endDate;
}
